home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- class HashMap$Entry<K, V> implements Map.Entry<K, V> {
- final K key;
- V value;
- HashMap$Entry<K, V> next;
- final int hash;
-
- HashMap$Entry(int var1, K var2, V var3, HashMap$Entry<K, V> var4) {
- this.value = var3;
- this.next = var4;
- this.key = var2;
- this.hash = var1;
- }
-
- public final K getKey() {
- return this.key;
- }
-
- public final V getValue() {
- return this.value;
- }
-
- public final V setValue(V var1) {
- Object var2 = this.value;
- this.value = var1;
- return (V)var2;
- }
-
- public final boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- Object var3 = this.getKey();
- Object var4 = var2.getKey();
- if (var3 == var4 || var3 != null && var3.equals(var4)) {
- Object var5 = this.getValue();
- Object var6 = var2.getValue();
- if (var5 == var6 || var5 != null && var5.equals(var6)) {
- return true;
- }
- }
-
- return false;
- }
- }
-
- public final int hashCode() {
- return (this.key == null ? 0 : this.key.hashCode()) ^ (this.value == null ? 0 : this.value.hashCode());
- }
-
- public final String toString() {
- return this.getKey() + "=" + this.getValue();
- }
-
- void recordAccess(HashMap<K, V> var1) {
- }
-
- void recordRemoval(HashMap<K, V> var1) {
- }
- }
-